<?php 
if($p == "channeldetails"){
	if($id)
	$getdetails = getchanneldetailsu($id);
	
	?>
    <div class="wrap_left">
<ul id="page_subnav">

<?php loginleft('');?>
</ul>
</div>    
    
    
    <div class="main">

<div class="container-input">
	<div class="playerhome">
   
	<?php
	ads($getdetails['u_stm'], 650,400,$getdetails['is_active_stm'], $getdetails['uid_stm']);
	
	
	?>
    
    <script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'f86cd6fc-6be3-4e06-a4b6-b952c2899cc3'});</script>

<div class="rightshare">
<span  class='st_twitter_vcount' displayText='Tweet'></span><span  class='st_email_vcount' displayText='Email'></span><span  class='st_facebook_vcount' displayText='Facebook'></span><span  class='st_sharethis_vcount' displayText='ShareThis'></span>
</div>
    </div>
</div>


<div class="container-input">




<div class="heading-terms-sub">Embed Code</div>
</div>
<div class="container-input"><div class="rightext">
<script>
function changeWidthHeight(w,h){
var ch = "<?php echo $getdetails['u_stm'];?>";
var objTA = document.getElementById('textAreaIdEmbed');
objTA.innerHTML = '<script>fid="'+ch+'"; v_width='+w+'; v_height='+h+';<\/script><script type="text\/javascript" src="<?php echo domain?>/player/embedPlayer.js"><\/script>';
} 
</script>
<div id="video-size"><b>Video Size</b><br>
			<input type="radio" onclick="changeWidthHeight(390, 240)" name="size">390x240		
			<input type="radio" onclick="changeWidthHeight(490, 300)" name="size">490x300		
			<input type="radio" checked="checked" onclick="changeWidthHeight(590, 360)" name="size">590x360		
			<input type="radio" onclick="changeWidthHeight(690, 420)" name="size">690x420
			</div>
<textarea id="textAreaIdEmbed" onclick="this.select()" class="inputreg2" rows="2" >
<script type="text/javascript"> fid="<?php echo $getdetails['u_stm'];?>"; v_width=400; v_height=290;</script><script type="text/javascript" src="<?php echo domain?>/player/embedPlayer.js"></script>
</textarea><br><br><b>Viewers Count</b><br>
<?php echo $getdetails['viewers'];?><br><br>
</div>
</div></div>

<?php } ?>

<?php if ($p == 'register' || $p == ''){
	
	?>
  <div class="wrap_left">
<ul id="page_subnav" class="clearfix">

<?php loginleft('index.php?p=register');?>
</ul>
    </div>
    
    
    <div class="main">

<?php registers();?>


<form action="?p=register" method="post">
<div class="container-input">
<div class="left-text">Your Name</div>
<div class="right-input"><input type="text" class="inputreg" value="" name="name" id="user_username" /></div>

<div class="left-text">Your Email</div>
<div class="right-input"><input type="text" class="inputreg" value="" name="email" id="your_email" /></div>

<div class="left-text">Your Password</div>
<div class="right-input"><input type="password" class="inputreg" value="" name="password" id="your_password" /></div>
</div>


<div class="container-input">
<p>By clicking on the "Create Your Account" button below, I certify that I have read and agree to <?php echo sitename;?>'s Terms and Conditions and Privacy Policy. </p>
<br></div><div class="container-input">
<input type="submit" class="button" name="registers" value="Create Your Accout" />
</div>

</form>


<?php }?>


<?php if ($p == 'contact-us'){
	
?>

 <div class="wrap_left">
<ul id="page_subnav">

<?php loginleft('');?>
</ul></div>
    
    

    <div class="main">
    <div class="container-input">
    <?php sendcontact();?>
</div>
<form method="POST" action="">

<div class="left-text">Email:* </div>
<div class="right-text">  <input name="Email" type="text" size="55" class="inputreg">
 </div>
<div class="left-text">Comment:*</div>
<div class="right-text">   <textarea name="Comment" cols="55" rows="6"  class="inputreg"/></textarea>
 </div>
  <p><span style="font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#363636">
  <input type="submit" name="submit"  class="button" value="Send">
  </span>
</form>





<?php }?>


<?php if ($p == 'forgotpassword'){
?>
 <div class="wrap_left">
<ul id="page_subnav">

<?php loginleft('index.php?p=forgotpassword');?>
</ul></div>
    
    
    
    <div class="main">

<?php forgot();?>

<form action="" method="post">

<div class="left-text">Your Email</div>
<div class="right-input"><input type="text" class="inputreg" value="" name="email" id="your_email" /></div>

<div class="container-input">
<div class="login-left">&nbsp;</div><div class="login-right"><input type="submit" class="button" name="forgot" value="Email Password" /></div>
</div>


</form>




<?php }?>



<?php
 
if($p == 'c'){?>
<div class="wrap_left">
<ul id="page_subnav">

<?php loginleft('');?>
</ul></div>
    
    
    
    <div class="main">

<?php
include_once(abspath."/content/config/$id.php");	
	
	}?>


</div>
